<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>学校信息设置</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		
		<link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css">		
		<script type="text/javascript" charset="utf-8" src="extjs/ext-all.js"></script>
		<script type="text/javascript" charset="utf-8" src="extjs/locale/ext-lang-zh_CN.js"></script>
		
		<link rel="stylesheet" href="res/css/list.css" type="text/css" />
		<script type="text/javascript" src="res/js/util.js"></script>
		<script type="text/javascript" src="common/js/school_property.js"></script>
	</head>

	<body>
		<form name="form" method="post" action="">
			<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1"
				bordercolor="#799AE1" class="tableBorder">
				<tbody>
					<tr>
						<td align="center" colspan="5" style="height:23px;background:#4455aa;color:white;font-weight: bold;">
							<s:property value="nodeText" />
						</td>
					</tr>
					<tr align="center" bgcolor="#799AE1">
						<td width="4%" align="center" class=txlHeaderBackgroundAlternate>
							学校名称
						</td>
						<td width="6%" align="center" class="txlHeaderBackgroundAlternate">
							系别
						</td>
						<td width="6%" align="center" class=txlHeaderBackgroundAlternate>
							专业
						</td>
						<td width="6%" align="center" class=txlHeaderBackgroundAlternate>
							年级
						</td>
						<td width="6%" align="center" class=txlHeaderBackgroundAlternate>
							班级
						</td>
					</tr>
					<tr align="center" bgcolor="#799AE1" style="height:380px;">
						<td width="6%" align="center" class=txlHeaderBackgroundAlternate>
							<select id="schoolName" style="width:180px;" size="25" onchange="javascript:loadChilds(this.value, 'departmentName');">
								<s:if test="sps == null">
									<option value="-1">请选择</option>
								</s:if>
								<s:else>
									<option value="-1">请选择</option>
									<s:iterator value="sps">
										<option value="<s:property value='id' />"><s:property value='id' />：<s:property value='name' /></option>
									</s:iterator>
								</s:else>
							</select>
						</td>
						<td width="6%" align="center" class="txlHeaderBackgroundAlternate">
							<select id="departmentName" style="width:180px;" size="25" onchange="javascript:loadChilds(this.value, 'professionalName');">
							</select>
						</td>
						<td width="6%" align="center" class=txlHeaderBackgroundAlternate>
							<select id="professionalName" style="width:180px;" size="25" onchange="javascript:loadChilds(this.value, 'gradeName');">
							</select>
						</td>
						<td width="6%" align="center" class=txlHeaderBackgroundAlternate>
							<select id="gradeName" style="width:180px;" size="25" onchange="javascript:loadChilds(this.value, 'className');">
							</select>
						</td>
						<td width="6%" align="center" class=txlHeaderBackgroundAlternate>
							<select id="className" style="width:180px;" size="25">
							</select>
						</td>
					</tr>
					<tr align="center" bgcolor="#799AE1">
						<td width="6%" align="center" class=txlHeaderBackgroundAlternate>
							<img alt="新增" src="res/images/add.gif">&nbsp;&nbsp;<a href="javascript:showAddForm('school');">新增</a>
							<img alt="修改" src="res/images/edit.gif">&nbsp;<a href="javascript:showUpdateForm('school');">修改</a>
							<img alt="删除" src="res/images/delete.gif">&nbsp;<a href="javascript:deleteCmd('school');">删除</a>
						</td>
						<td width="6%" align="center" class="txlHeaderBackgroundAlternate">
							<img alt="新增" src="res/images/add.gif">&nbsp;&nbsp;<a href="javascript:showAddForm('department');">新增</a>
							<img alt="修改" src="res/images/edit.gif">&nbsp;<a href="javascript:showUpdateForm('department');">修改</a>
							<img alt="删除" src="res/images/delete.gif">&nbsp;<a href="javascript:deleteCmd('department');">删除</a>
						</td>
						<td width="6%" align="center" class=txlHeaderBackgroundAlternate>
							<img alt="新增" src="res/images/add.gif">&nbsp;&nbsp;<a href="javascript:showAddForm('professional');">新增</a>
							<img alt="修改" src="res/images/edit.gif">&nbsp;<a href="javascript:showUpdateForm('professional');">修改</a>
							<img alt="删除" src="res/images/delete.gif">&nbsp;<a href="javascript:deleteCmd('professional');">删除</a>
						</td>
						<td width="6%" align="center" class=txlHeaderBackgroundAlternate>
							<img alt="新增" src="res/images/add.gif">&nbsp;&nbsp;<a href="javascript:showAddForm('grade');">新增</a>
							<img alt="修改" src="res/images/edit.gif">&nbsp;<a href="javascript:showUpdateForm('grade');">修改</a>
							<img alt="删除" src="res/images/delete.gif">&nbsp;<a href="javascript:deleteCmd('grade');">删除</a>
						</td>
						<td width="6%" align="center" class=txlHeaderBackgroundAlternate>
							<img alt="新增" src="res/images/add.gif">&nbsp;&nbsp;<a href="javascript:showAddForm('class');">新增</a>
							<img alt="修改" src="res/images/edit.gif">&nbsp;<a href="javascript:showUpdateForm('class');">修改</a>
							<img alt="删除" src="res/images/delete.gif">&nbsp;<a href="javascript:deleteCmd('class');">删除</a>
						</td>
					</tr>
				</tbody>
			</table>
		</FORM>
	</body>
</html>
